import nltk
from nltk.translate.meteor_score import meteor_score

# 参考翻译和候选翻译
reference = "this is a test sentence"
candidate = "this is a test sentence"

# 计算METEOR得分
score = meteor_score([reference], candidate)
print(f"METEOR score: {score}")
